//
//  AZHomeHeadView.swift
//  AzaanSwift
//
//  Created by Azzan on 2018/4/14.
//  Copyright © 2018年 Azzan. All rights reserved.
//

import UIKit

class AZHomeHeadView: UICollectionReusableView , WRCycleScrollViewDelegate{

//    var imageArray:NSMutableArray = []
    var cycleScrollView:WRCycleScrollView?
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        
    }
    
    var imageArray:[String] = []{
        didSet {
            
            let frame = bounds
            cycleScrollView = WRCycleScrollView(frame: frame, type: .SERVER, imgs: imageArray)
            self.addSubview(cycleScrollView!)
            cycleScrollView?.delegate = self
        }
    }
    
    
}
